"""
API v1 路由汇总
"""
from fastapi import APIRouter
# 逐步恢复API路由
from api.v1.endpoints import cameras, video_stream, gpu_resources_mock, ai_algorithm_mock, performance_optimization
# from api.v1.endpoints import gpu_resources, ai_algorithm  # 暂时禁用，等修复后再启用

# 导入WVP路由
from api import wvp
from api.v1.endpoints import wvp_sync

api_router = APIRouter()

# 恢复基础路由
api_router.include_router(cameras.router, prefix="/cameras", tags=["摄像头管理"])
api_router.include_router(video_stream.router, prefix="/video", tags=["视频流管理"])
api_router.include_router(gpu_resources_mock.router, prefix="/gpu-resources", tags=["GPU资源管理(Mock)"])
api_router.include_router(ai_algorithm_mock.router, prefix="/ai-algorithm", tags=["AI算法管理(Mock)"])
api_router.include_router(performance_optimization.router, prefix="/performance", tags=["性能优化"])

# 添加WVP路由
api_router.include_router(wvp.router, tags=["WVP集成"])
api_router.include_router(wvp_sync.router, tags=["WVP数据同步"])

# 暂时注释掉其他路由，等修复后再恢复
# api_router.include_router(wvp_integration.router, prefix="/wvp", tags=["WVP-Pro集成"])
# api_router.include_router(gpu_resources.router, prefix="/gpu", tags=["GPU资源管理"])
# api_router.include_router(hygiene_management.router, prefix="/hygiene", tags=["环境卫生管理"])
# api_router.include_router(data_analysis.router, prefix="/data-analysis", tags=["数据分析和可视化"])
# api_router.include_router(users.router, prefix="/users", tags=["用户管理"])
# api_router.include_router(system.router, prefix="/system", tags=["系统管理"])

# 临时的测试端点
@api_router.get("/test")
async def test_endpoint():
    """测试端点"""
    return {
        "message": "API v1 测试成功",
        "status": "ok"
    }